<?php

$newFile = '../public/image/'.$_FILES['file']['name'];
move_uploaded_file($_FILES['file']['tmp_name'],$newFile);

header("location:userinfo.php?log=".$_FILES['file']['name']);